package org.dromara.apartment.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.dromara.apartment.domain.ApartmentFacility;
import org.dromara.apartment.domain.ApartmentLabel;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;
import java.util.Map;

/**
 * 公寓标签关联表 数据层
 *
 * @author Lion Li
 */
public interface ApartmentLabelMapper extends BaseMapperPlus<ApartmentLabel, ApartmentLabel> {


    /**
     *
     * 根据公寓ID查询标签名称集合
     * @param apartmentId
     * @return
     */
    List<String> selectLabelNamesById(Long apartmentId);



    /**
     *
     * 根据公寓ID查询标签ID集合
     * @param apartmentId
     * @return
     */
    Long[] selectLabelIdsById(Long apartmentId);


    /**
     * 根据公寓ID查询标签集合
     * @param apartmentId
     * @return
     */
    @MapKey("id")
    List<Map<String,Object>> selectLabelListById(Long apartmentId);

}
